package main

import (
	"fmt"
)

type Goods struct{
	price float64
	Name string
}


type Book struct{
	Goods  // 继承 商品那个类
	page int
}

func (book *Book) GetPage() int{
	return book.page
} 

func (goods Goods) GetPrice() float64{
	return goods.price
}


func main(){
	var book =&Book{}
	book.Goods.price=18.123
	book.Goods.Name="lajskd"
	book.page=111
	fmt.Println(book)
	fmt.Println(book.GetPage())
	fmt.Println(book.Goods.price)
}
